Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: additional tweaks for did:web and other methods as public DIDs #2392

Merged
merged 5 commits into from
Aug 2, 2023

Conversation

dbluhm
Copy link
Contributor

@dbluhm dbluhm commented Aug 1, 2023

This PR adjusts the request schema for the set public DID endpoint to permit GENERIC_DIDs. It seems that the work to support a generic DID in this endpoint was already done and just the request schema was missed by mistake (or perhaps it's a merge artifact 🤷‍♂️).

Additionally, this PR adjusts the behavior of DID Exchange requests so that if we're using a public DID, no DID Doc attachment is included in the request. This enables us to form connections using a did:web or other DID that is resolvable without worrying about ACA-Py's DID Doc creation process not being quite up to snuff on multi-method support.

And some minor type hint corrections.

@dbluhm dbluhm requested review from Jsyro and usingtechnology August 1, 2023 19:00
@swcurran
Copy link
Contributor

swcurran commented Aug 1, 2023

Heads up on this, @Jsyro as it might be useful for did:peer:2.

@dbluhm
Copy link
Contributor Author

dbluhm commented Aug 1, 2023

I should add some unit tests for this. Marking as draft until I get that taken care of.

@dbluhm dbluhm marked this pull request as draft August 1, 2023 20:31
@dbluhm dbluhm marked this pull request as ready for review August 2, 2023 11:43
@dbluhm
Copy link
Contributor Author

dbluhm commented Aug 2, 2023

@usingtechnology requesting a review 🙂 Should be ready now with tests included in my last commit.

usingtechnology
usingtechnology previously approved these changes Aug 2, 2023
Copy link
Contributor

@usingtechnology usingtechnology left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, test is nice to have.
very minor comment to which I have no feelings either way - update at your discretion.

aries_cloudagent/protocols/didexchange/v1_0/manager.py Outdated Show resolved Hide resolved
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@dbluhm dbluhm requested a review from usingtechnology August 2, 2023 14:55
Copy link
Contributor

@usingtechnology usingtechnology left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff.

@dbluhm dbluhm merged commit 34743f6 into openwallet-foundation:main Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants